package com.lc.tgxm.conn;

import com.lc.tgxm.model.HomeListmodel;
import com.lc.tgxm.model.HomeModelDTO;
import com.zcx.helper.adapter.AppRecyclerAdapter;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * 58.《crm》-销售线索-线索列表[GET]
 * Created by Lei on 2016/12/23.
 */
@HttpInlet(Conn.URL_CLUELIST)
public class SaleClueListAsyGet extends BaseAsyGet<HomeModelDTO> {
    public String user_id;
    public String page;

    public SaleClueListAsyGet(AsyCallBack<HomeModelDTO> asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected HomeModelDTO successParser(JSONObject object) {
        HomeModelDTO dto = new HomeModelDTO();
        initDTOData(object, dto);

        return dto;
    }

    protected AppRecyclerAdapter.Item jsonData(JSONObject object) {
        HomeListmodel hm = new HomeListmodel();
        hm.id = object.optString("id");
        return hm;
    }


}